<template>
  <div class="home">
    
    <van-button 
    :loading="isLogin"
    @click="login" 
    :loading-text="text"  
    type="info">登录</van-button>
   
  
  </div>
</template>

<script>
// @ is an alias to /src
 

export default {
  name: 'Home',
  data() {
    return {
      text: '登录',
      isLogin:false
    }
  }, 
  methods: {
    login() {
      this.isLogin = true
      setTimeout(() => {
        this.isLogin = false
      },1500)
    }
  },
}
</script>
